/* ******************************************************************
 * This file is part of the escal project and distributed under the
 * terms of the GNU General Public License Version 3
 * Copyright (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 *******************************************************************/

#ifndef URL_DIALOG_H
#define URL_DIALOG_H

#include "ui_url_dialog.h"
#include "escal.h"
#include <QDialog>
#include <QFileDialog>
#include <QUrl>
#include <iostream>


class QFileDialog;
class UrlDialog: public QDialog, protected Ui::UrlDialog{
        Q_OBJECT
public:
	UrlDialog();
	~UrlDialog();
	QUrl getUrl();
	void setUrlStr(const QString &urlStr);
	QString getFileName();
	QString getFolderName();
	int getThreadNum();
	void reset();
private slots:
        void browseDir();
	void accepted();
	void updateFileName(const QString &urlString);
private:
        QFileDialog *dirDialog;

};

#endif /* URL_DIALOG_H */
